package annotation;

import annotation.event.custom.CustomPublisher;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class CustomEventApp {
    public static void main(String[] args) {
        final ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("annotation\\xml\\beans.xml");
        final CustomPublisher publisher = (CustomPublisher) context.getBean("publisher");
        publisher.publish();
    }
}
